package leetcode.code1218;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution1218 implements IDebug {

	public abstract int longestSubsequence(int[] arr, int difference);

	@Override
	public void debug1() {
		String str = "[1,2,3,4]";
		int difference = 1;
		int r = this.longestSubsequence(HelpDebug.str2array3(str), difference);
		int e = 4;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		String str = "[1,3,5,7]";
		int difference = 1;
		int r = this.longestSubsequence(HelpDebug.str2array3(str), difference);
		int e = 1;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug3() {
		String str = "[1,5,7,8,5,3,4,2,1]";
		int difference = -2;
		int r = this.longestSubsequence(HelpDebug.str2array3(str), difference);
		int e = 4;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
